<div class="page-sidebar navbar-collapse collapse">
  <ul class="page-sidebar-menu">
    <li> 
      <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
      <div class="sidebar-toggler hidden-sm hidden-xs"></div>
      <!-- BEGIN SIDEBAR TOGGLER BUTTON --> 
    </li>
    <?php
				if($this->auth['menu']){
					foreach($this->auth['menu'] as $k=> $r){
						if($k==0) $cls='start';
						else $cls='';
						
						if($r['active']) $cls.=" active";
				?>
    <li class="<?=$cls;?>"> <a href="javascript:;"> <i class="icon-<?=$r['icon'];?>"></i> <span class="title">
      <?=$r['name'];?>
      </span> <span class="selected "></span> <span class="arrow"></span> </a>
      <ul class="sub-menu">
        <?php
						if($r['list']){
							foreach($r['list'] as $s){
								
								if($r['curr']!="" && $s[1]==$r['curr']) $smlcls=' class="active"';
								else $smlcls='';
								
								?>
        <li<?=$smlcls;?>> <a href="<?=$s[1];?>"><i class="icon-caret-right"></i><?=$s[0];?></a> </li>
        <?
							}
						}?>
      </ul>
    </li>
    <?
					}
				}
				?>
  </ul>
</div>
